class Solution(object):
    def isThree(self, n):
        if n == 1:
            return False
        t = n ** 0.5
        if int(t) == t:
            for i in range(2, int(t)):
                if n % i == 0:
                    return False
            return True
        else:
            return False